import request from '@/utils/request';

export function queryMenuList(params) {
  return request({
    url: '/queryMenuList',
    method: 'get',
    params: params
  })
}

export function addMenu(data) {
  return request({
    url: '/addMenu',
    method: 'post',
    data: data
  })
}

export function deleteMenu(params) {
  return request({
    url: '/deleteMenu',
    method: 'get',
    params: params
  })
}

export function updateMenu(data) {
  return request({
    url: '/updateMenu',
    method: 'post',
    data: data
  })
}

export function queryOneMenu(params) {
  return request({
    url: '/queryOneMenu',
    method: 'get',
    params: params
  })
}